import request from '@/utils/request'

// 查询月度数据列表
export function listMonthlyData(query) {
  return request({
    url: '/performance/monthlyData/list',
    method: 'get',
    params: query
  })
}

// 查询月度数据详细
export function getMonthlyData(id) {
  return request({
    url: '/performance/monthlyData/' + id,
    method: 'get'
  })
}

// 新增月度数据
export function addMonthlyData(data) {
  return request({
    url: '/performance/monthlyData',
    method: 'post',
    data: data
  })
}

// 修改月度数据
export function updateMonthlyData(data) {
  return request({
    url: '/performance/monthlyData',
    method: 'put',
    data: data
  })
}

// 删除月度数据
export function delMonthlyData(id) {
  return request({
    url: '/performance/monthlyData/' + id,
    method: 'delete'
  })
}
